package com.xique.door.bean.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xique.common.core.annotation.Excel;
import com.xique.common.core.web.domain.BaseEntity;
import lombok.Data;

import java.util.Date;

/**
 * 用户设备表对象 t_user_device
 *
 * @author ww
 * @date 2021-06-17
 */
@Data
public class UserDevice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 权限ID */
    private Long id;

    /** 项目ID */
    @Excel(name = "项目ID")
    private Long parkId;

    /** 权限组ID */
    @Excel(name = "权限组ID")
    private Long groupId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** 设备sn */
    @Excel(name = "设备sn")
    private String devSn;

    /** 设备名称 */
    @TableField(exist = false)
    private String devName;

    /** 状态（synced-已同步 notSynced-未同步） */
    @Excel(name = "状态", readConverterExp = "s=ynced-已同步,n=otSynced-未同步")
    private String status;

    private Integer count;


    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /** 创建者 */
    private Long createUser;

    /** 更新者 */
    private Long updateUser;

    private String model;

    private String customId;
}
